package com.menggudf.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name="parts")
public class Parts implements Serializable{

    /**
     * 
     */
    private static final long serialVersionUID = -126918476244126507L;
    /**
     * 
     */
    
    private int id;
    private Integer oneNum;
    private Integer twoNum;
    private String onePart;
    private String twoPart;
    private Date createTime;
    
    @Id
    @Column(name="id",unique=true,nullable=false)
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    public int getId() {
        return id;
    }
    
    public void setId(int id) {
        this.id = id;
    }

    @Column(name="onePart")
    public String getOnePart() {
        return onePart;
    }

    public void setOnePart(String onePart) {
        this.onePart = onePart;
    }

    @Column(name="twoPart")
    public String getTwoPart() {
        return twoPart;
    }

    public void setTwoPart(String twoPart) {
        this.twoPart = twoPart;
    }
    
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "createTime", length = 19)
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Column(name="oneNum")
    public Integer getOneNum() {
        return oneNum;
    }

    public void setOneNum(Integer oneNum) {
        this.oneNum = oneNum;
    }

    @Column(name="twoNum")
    public Integer getTwoNum() {
        return twoNum;
    }

    public void setTwoNum(Integer twoNum) {
        this.twoNum = twoNum;
    }
    
}
